package design_pattern.FactoryModel.Factory;

import design_pattern.FactoryModel.Product.Product;
import design_pattern.FactoryModel.Product.ProductB;

/**
 * @Description
 * @Author yangshunjie
 * @Date 2021/9/20
 */
public class FactoryForB extends Factory{
    @Override
    Product buildProduct() {
        ProductB productB = new ProductB();
        productB.setWeight("5kg");
        productB.setName("产品B");
        return productB;
    }
}
